package com.tianji.learning.controller;

import com.tianji.learning.entity.query.PointsBoardQuery;
import com.tianji.learning.entity.vo.PointsBoardVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.tianji.learning.service.IPointsBoardService;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;

/**
 * <p>
 * 学霸天梯榜 控制器
 * </p>
 *
 * @author lemon
 */
@Api(tags = "排行榜相关接口")
@RestController
@RequiredArgsConstructor
@RequestMapping("/boards")
public class PointsBoardController {

    private final IPointsBoardService pointsBoardService;


    @ApiOperation("查询学霸天梯榜")
    @GetMapping
    public PointsBoardVO queryPointsBoard(PointsBoardQuery query) {
        return pointsBoardService.queryPointsBoard(query);
    }
}
